package com.seed.core.builder.pojo;

import java.util.Map;

/**
 * 关系的left join中的on条件所需数据
 */
public class OnCondition1 {
    private final Table1 selfTable;
    private final String selfColumn;
    private final Table1 targetTable;
    private final String targetColumn;
    private Map<String, Object> extra;

    public OnCondition1(Table1 selfTable, String selfColumn, Table1 targetTable, String targetColumn) {
        this.selfTable = selfTable;
        this.selfColumn = selfColumn;
        this.targetTable = targetTable;
        this.targetColumn = targetColumn;
    }

    public Table1 getSelfTable() {
        return selfTable;
    }

    public String getSelfColumn() {
        return selfColumn;
    }

    public Table1 getTargetTable() {
        return targetTable;
    }

    public String getTargetColumn() {
        return targetColumn;
    }

    public Map<String, Object> getExtra() {
        return extra;
    }

    public OnCondition1 setExtra(Map<String, Object> extra) {
        this.extra = extra;
        return this;
    }
}
